package com.atguigu.tingshu.user.service;

import com.atguigu.tingshu.model.user.UserInfo;
import com.atguigu.tingshu.vo.user.UserInfoVo;
import com.atguigu.tingshu.vo.user.UserPaidRecordVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface UserInfoService extends IService<UserInfo> {

    //用户登录
    String wxLogin(String code);

    //获取用户信息
    UserInfoVo getUserInfo();

    //修改用户信息
    void updateUser(UserInfoVo userInfoVo);
    //根据userId查询用户信息
    UserInfo getUserInfoById(Long userId);

    UserInfoVo findUserInfoVoByUserId(Long userId);
    //判断用户是否购买声音列表
    Map<Long, Integer> userIsPaidAlbumAndTrack(Long albumId, List<Long> trackIds);
    //判断用户是否购买过专辑
    Boolean isPaidAlbum(Long albumId);

    //远程调用:根据专辑id获取用户支付过的声音id列表
    List<Long> findUserPaidTrackList(Long albumId);

    void updateUserPaidRecord(UserPaidRecordVo userPaidRecordVo);
}
